const Goods = require("../../model/goods");
module.exports = async(req, res) => {
    const resData = {
        // data返回的是用户传递过来的数据
        data: [],
        meta: {
            code: 200,
            msg: "查找成功!",
        },
    };
    let goods = await Goods.find();
    resData.data = goods;
    res.send(resData);
};